<div class="ml-auto">
  <div class="dropdown ml-auto dropdown-end dropdown-bottom">
    <label tabindex="0" class="btn btn-ghost rounded-btn px-1.5 hover:bg-base-content/20">
      <div aria-label="Avatar photo" class="avatar">
        <div class="mask mask-squircle" style="width: 30px; height: 30px">
          <%= image_tag avatar_path(current_user, size: 40) %>
        </div>
      </div>
    </label>
    <ul class="menu dropdown-content mt-4 w-52 rounded-box bg-base-100 p-2 shadow">
      <li>
        <%# <%= link_to t(".connected_accounts"), user_connected_accounts_path, class: 'text-gray-800 bg-white hover:bg-primary-50 dark:text-gray-50 dark:bg-gray-800 dark:hover:bg-primary-800 transition ease-in-out duration-200 whitespace-nowrap no-underline block px-6 py-3' if Devise.omniauth_configs.any? %>
        <%# <%= link_to t(".accounts"), accounts_path, class: 'text-gray-800 bg-white hover:bg-primary-50 dark:text-gray-50 dark:bg-gray-800 dark:hover:bg-primary-800 transition ease-in-out duration-200 whitespace-nowrap no-underline block px-6 py-3' %>
        <%#= link_to t(".api_tokens"), api_tokens_path, class: 'text-gray-800 bg-white hover:bg-primary-50 dark:text-gray-50 dark:bg-gray-800 dark:hover:bg-primary-800 transition ease-in-out duration-200 whitespace-nowrap no-underline block px-6 py-3' if Jumpstart.config.payments_enabled? %>
        <%= link_to edit_user_registration_path do %>
          <iconify-icon icon="lucide:user" height="16"></iconify-icon>
          Account
        <% end %>
        <%= link_to account_users_path do %>
          <iconify-icon icon="lucide:users" height="16"></iconify-icon>
          Team Members
        <% end %>
        <%= link_to providers_path do %>
          <iconify-icon icon="lucide:key-round" height="16"></iconify-icon>
          Credentials
        <% end %>
        <%= link_to "https://docs.canine.sh/", target: "_blank" do %>
          <iconify-icon icon="lucide:book-open"></iconify-icon>
          <span>Documentation</span>
        <% end %>
      </li>
      <% if current_user.admin? %>
        <li>
          <%= link_to avo_path do %>
            <iconify-icon icon="lucide:lock-keyhole" height="16"></iconify-icon>
            Admin
          <% end %>
        </li>
        <li>
          <%= link_to admin_flipper_path do %>
            <iconify-icon icon="lucide:flag" height="16"></iconify-icon>
            Feature Flags
          <% end %>
        </li>
        <li>
          <%= link_to admin_good_job_path do %>
            <iconify-icon icon="lucide:server" height="16"></iconify-icon>
            Jobs
          <% end %>
        </li>
      <% end %>
      <hr class="-mx-2 my-1 border-base-content/10">
      <li class="text-error">
        <%= link_to destroy_user_session_path, method: :delete do %>
          <iconify-icon icon="lucide:log-out" height="16"></iconify-icon>
          Logout
        <% end %>
      </li>
    </ul>
  </div>
</div>
